'/
' GUI Library
' Written by Anton Berlin, 2010.
' 
' =========================================================================
' 
' This program is free software; you can redistribute it and/or modify
' it under the terms of the GNU Lesser General Public License as published
' by the Free Software Foundation; either version 3 of the License.
' 
' This program is distributed in the hope that it will be useful,
' but WITHOUT ANY WARRANTY; without even the implied warranty of
' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
' GNU General Public License for more details.
' 
' You should have received a copy of the GNU Lesser General Public License
' along with this program; if not, write to the Free Software
' Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
'/

superstrict

import "GUI_Checkbox.bmx"
import "GUI_Event.bmx"

'// -------------------------------------------------------------------------------------------------------------
'// Gadget types.
'// -------------------------------------------------------------------------------------------------------------
const GADGET_WINDOW:short = 1;
const GADGET_BUTTON:short = 2;
const GADGET_TEXT:short = 3;
const GADGET_IMAGE:short = 4;
const GADGET_FIELD:short = 5;
const GADGET_FORM:short = 6;
const GADGET_CHECKBOX:short = 7;
const GADGET_LIST:short = 8;
const GADGET_MENU:short = 9;
const GADGET_MENU_ITEM:short = 10;
const GADGET_SLIDER:short = 11;

'// -------------------------------------------------------------------------------------------------------------
'// Current gadget event.
'// -------------------------------------------------------------------------------------------------------------
global m_event:GUI_Event;

'// -------------------------------------------------------------------------------------------------------------
'// Pointer to the currently selected checkbox.
'// -------------------------------------------------------------------------------------------------------------
global m_selectedCheckbox:GUI_Checkbox;

'// -------------------------------------------------------------------------------------------------------------
'// Screen resolution to use when calculating. Set this using 'GUI.init()' before using this library.
'// -------------------------------------------------------------------------------------------------------------
global m_resX:int;
global m_resY:int;
